$(function(){
    //状态
    $(".state").on("click",function(){
        $(this).children().eq(0).addClass("on");
        $(this).siblings().children().removeClass('on');
    });
    $(".time").on("click",function(){
        $(this).children().eq(0).addClass("on");
        // $(this).siblings().children().removeClass('on');
    });
    //个人选项卡
    $("#wpersonal").on('click',function(){
        $("#wcompany").children().css({"background":"url(css/i/fillInfo_icon2_1.png) no-repeat 0 0","background-size":"100% 100%"});
        $("#wcompany").css({"background-color":"#fff","border":"2px solid #e5e5e5","color":"#333333"});
        $(this).children().css({"background":"url(css/i/fillInfo_icon1_2.png) no-repeat 0 0","background-size":"100% 100%"});
        $(this).css({"background-color":"#5094d9","border":"none","color":"#fff"});
        $(".list_details1").css("margin-left","0");
    });
    //企业选项卡
    $("#wcompany").on('click',function(){
        $("#wpersonal").children().css({"background":"url(css/i/fillInfo_icon1_1.png) no-repeat 0 0","background-size":"100% 100%"});
        $("#wpersonal").css({"background-color":"#fff","border":"2px solid #e5e5e5","color":"#333333"});
        $(this).children().css({"background":"url(css/i/fillInfo_icon2_2.png) no-repeat 0 0","background-size":"100% 100%"});
        $(this).css({"background-color":"#5094d9","border":"none","color":"#fff"});
        $(".list_details1").css("margin-left","-12rem");
    });

     //添加标签
     $("#addBiao").on("click",function(){
        if($("#skill").val()=="" || $("#skillBiao").children('span').length>=3){
           $(".skillH5").css("color","red"); 
           $("#skill").val("");
            return false;
        }else{
            $(".skillH5").css("color","#a0a0a0"); 
            $("#skillBiao").append("<span class='tips'>"+$("#skill").val()+"<var class='delete'></var></span>") 
            $("#skill").val("");
        }
        $("#skill").val();
     });
     //删除标签
     $("#skillBiao").on("click",".delete",function(){
       $(this).parent().remove();
     });

     $("#addBiao2").on("click",function(){
        if($("#skill2").val()=="" || $("#skillBiao2").children('span').length>=3){
           $(".skillH5").css("color","red"); 
            return false;
        }else{
            $(".skillH5").css("color","#a0a0a0"); 
            $("#skillBiao2").append("<span class='tips'>"+$("#skill2").val()+"<var class='delete'></var></span>") 
            $("#skill2").val("");
        }
        $("#skill2").val();
     });
     //删除标签
     $("#skillBiao2").on("click",".delete",function(){
       $(this).parent().remove();
     });

});